import { createApp } from 'vue'
import router from './router'
import pinia from './store'
import App from './App.vue'

//css
import 'normalize.css'
import '@/assets/css/index.css'

// 注册所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 测试axios封装
import '@/service/modules/home'
import '@/service/modules/hospital'
// 全局组件
import LoginBox from '@/components/LoginBox/index.vue'

const app = createApp(App)

// 全局组件
app.component('LoginBox', LoginBox)

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(pinia)
app.mount('#app')
